package com.zx.cs.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zx.common.annotation.Excel;
import com.zx.common.core.domain.BaseEntity;

/**
 * --- 平安喜乐 ---
 *
 * @author LiuGuowei
 * @date 2025/9/2
 * @desc 库存补货记录对象 inventory_replenish
 */

public class InventoryReplenish extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    private Long id;

    /**
     * 库存ID
     */
    @Excel(name = "库存ID")
    private Long inventoryId;

    /**
     * 补货数量
     */
    @Excel(name = "补货数量")
    private Long quantity;

    /**
     * 补货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replenishTime;

    /**
     * 操作人ID
     */
    @Excel(name = "操作人ID")
    private Long operatorId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setInventoryId(Long inventoryId) {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() {
        return inventoryId;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setReplenishTime(Date replenishTime) {
        this.replenishTime = replenishTime;
    }

    public Date getReplenishTime() {
        return replenishTime;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("inventoryId", getInventoryId())
                .append("quantity", getQuantity())
                .append("replenishTime", getReplenishTime())
                .append("operatorId", getOperatorId())
                .append("remark", getRemark())
                .toString();
    }
}
